package util

import (
	"github.com/mozillazg/request"
	"net/http"
)

type Json struct {
	data interface{}
}

func Get(url string) interface{} {
	c := new(http.Client)
	req := request.NewRequest(c)
	resp, _ := req.Get(url)
	defer resp.Body.Close() // Don't forget close the response body
	json, _ := resp.Json()
	return json
}
